package com.luo.service.works.impl;

import com.luo.dao.WorksDao;
import com.luo.pojo.Works;
import com.luo.service.works.WorksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("WorksService")
public class WorksServiceImpl implements WorksService {
    @Autowired
    private WorksDao worksDao;

    @Override
    public List<Works> queryAllworks() {
        return this.worksDao.queryAllworks();
    }

    @Override
    public String[] queryWorkTags(Integer wid) {
        return this.worksDao.queryWorkTags(wid);
    }
}
